package com.easymin.weixin.mapper;

import com.easymin.weixin.entity.WxBind;
import com.easymin.weixin.entity.WxBindCriteria;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface WxBindMapper extends BaseMapper<WxBind, WxBindCriteria, Long> {
  Long countByExample(WxBindCriteria example);

  int deleteByExample(WxBindCriteria example);

  int deleteByPrimaryKey(Long id);

  int insert(WxBind record);

  int insertSelective(WxBind record);

  List<WxBind> selectByExampleWithRowbounds(WxBindCriteria example, RowBounds rowBounds);

  List<WxBind> selectByExample(WxBindCriteria example);

  WxBind selectByPrimaryKey(Long id);

  int updateByExampleSelective(@Param("record") WxBind record,
      @Param("example") WxBindCriteria example);

  int updateByExample(@Param("record") WxBind record, @Param("example") WxBindCriteria example);

  int updateByPrimaryKeySelective(WxBind record);

  int updateByPrimaryKey(WxBind record);

  Long findOpenIdExist(@Param("openId") String openid);

  String findOpenIdByPhone(@Param("phone") String phone);
}
